package com.cli.springboot2study.config;

import com.cli.springboot2study.model.Person;
import com.cli.springboot2study.model.PersonInstance;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author mir.xiong
 * @version 1.0
 * @description
 * @see
 * @since Created by work on 2022/1/16 1:06 下午
 */
@Configuration
public class ModelConfiguration {

    @Bean
    @ConditionalOnMissingClass(value = {"com.cli.springboot2study.model.Person"})
    public Person person() {
        return new Person(170,"mir");
    }

//    @Bean
//    public PersonInstance personInstance() {
//        return new PersonInstance(180,"mir_xiong",25);
//    }
}
